package com.common.service.judicialpersonal;

import com.common.entity.personal.PersonalEntity;
import com.common.query.ConditionService;
import com.common.requestvo.judicialpersonal.JudicialPersonalReqVo;
import com.common.vo.judicialpersonal.JudicialPersonalDetailVo;
import com.common.vo.judicialpersonal.JudicialPersonalVo;
import com.querydsl.core.Tuple;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * 司法人员 个人档案  Service
 *
 * @author johnny
 * @create 2021-05-13 5:06 下午
 **/

public interface JudicialPersonalService extends ConditionService<Tuple> {

    /**
     * 分页查询接口
     *
     * @param judicialPersonalReqVo : judicialPersonalReqVo
     * @param pageVo                : pageVo
     * @return : Page<JudicialPersonalVo>
     */
    Page<JudicialPersonalVo> listByCondition(JudicialPersonalReqVo judicialPersonalReqVo, Pageable pageVo);

    JudicialPersonalDetailVo findBusinessJobDetail(Long personalId);

    void add(JudicialPersonalVo judicialPersonalVo);

    void edit(JudicialPersonalVo judicialPersonalVo);

    void delete(Long id);

    void deletes(List<Long> ids);
}